package com.buer.dao.util.db;

/**
 * mysql方言
 */
public class MysqlDialect implements Dialect {

    @Override
    public String getLimitString(String sql, int offset, int pageSize) {
        StringBuilder buffer = new StringBuilder(sql);
        buffer.append(" limit ");
        buffer.append(offset);
        buffer.append(",");
        buffer.append(pageSize);
        return buffer.toString();
    }

}
